package com.gmail.dmitryustimov.ms.observer.java7_innerclasses;


public class Demo {
    public static void main(String[] args) {

        System.out.println("----- observer.java7_innerclasses -----");

        Writer writer = new Writer();

        Subscriber subscriber1 = new Subscriber(writer, "subscriber1");
        Subscriber subscriber2 = new Subscriber(writer, "subscriber2");

        writer.addBook(new Book("Book1"));
        writer.addBook(new Book("Book2"));

        writer.addArticle(new Article("Article1"));
        writer.addArticle(new Article("Article2"));
    }
}
